package cn.xuguowen.user.designPatten.chain_of_responsibility.article.function_interface;

import java.util.List;

/**
 * ClassName: Client
 * Package: cn.xuguowen.user.designPatten.chain_of_responsibility
 * Description:
 *
 * @Author 徐国文
 * @Create 2023/6/2 10:55
 * @Version 1.0
 */
public class Client {

    public static void main(String[] args) {
        Article article = new Article();
        article.setArticleId(1L);
        article.setContent("123456");
        article.setTitle("基于SpringCloud的短信宝的设计与实现");
        article.setAuthor("徐国文");

        ArtiicleCheckComponent artiicleCheckComponent = new ArtiicleCheckComponent();
        ArticleCheckResult articleCheckResult = artiicleCheckComponent.checkArticle(article);
        List<String> failedMsgList = articleCheckResult.getFailedMsgList();
        System.out.println(failedMsgList);
    }
}
